/*
 * BackupBO.java
 *
 * Created on March 22, 2007, 3:59 PM
 */

package Data;

import java.util.Date;

/**
 *
 * @author Dallin Regehr
 */
public class BackupBO extends RevenueSourceBO{
    
    private String id;
    private double size;
    private double price;
    private Date beginDate;
    private Date endDate;
    private boolean alreadyInDB = false;
    private boolean dirty = true;
    
    /**
     * Creates a new instance of BackupBO
     */
    public BackupBO(String id) {
        this.id = id;
    }
    
    /**
     * Gets the backup ID
     * @return returns the ID
     */
    public String getId() {
        return id;
    }
    
    /**
     * Sets the coupon alreadyInDB
     * @param alreadyInDB Shows whether the BO is already in the DB.
     */
    public void setAlreadyInDB(boolean alreadyInDB) {
        this.alreadyInDB = alreadyInDB;
    }
    
    /**
     * Gets the coupon isDirty
     * @return Boolean for whether the BO is dirty
     */
    public boolean isDirty() {
        return dirty;
    }
    
    /**
     * Sets the coupon dirty variable
     * @param dirty Set the dirty variable
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }
    
    public double getSize() {
        return size;
    }
    
    public void setSize(double size) {
        this.size = size;
    }
    
    public Date getBeginDate() {
        return beginDate;
    }
    
    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }
    
    public Date getEndDate() {
        return endDate;
    }
    
    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
    
    public void calculatePrice() {
        double price = super.getPrice();
        super.setPrice(price);
    }
}
